<template>
  <div class="seek-help-detail">
    <app-header :back="true" titleContent="求助详情"></app-header>
    <avatar :list="list"></avatar>
    <des-pic :list="list"></des-pic>
  </div>
</template>

<script>
import AppHeader from '../header/header'
import avatar from '../common/avatar'
import DesPic from '../common/desPic'
import {getSeekHelpDetail} from '../../api/seekHelp'
export default {
  name: 'seekHelpDetail',
  data () {
    return {
      commentList: [],
      list: {}
    }
  },
  components: {
    AppHeader,
    avatar,
    DesPic
  },
  created () {
    this._getSeekHelpDetail()
  },
  methods: {
    _getSeekHelpDetail () {
      getSeekHelpDetail(this.$route.params.id).then(res => {
        if (res.code === 200) {
          this.commentList = res.data.comment
          this.list = res.data.neighbor
        }
      })
    }
  },
  computed: {
  }
}
</script>

<style>

</style>
